﻿#include <stdio.h> 
#include <string.h>
#include <malloc.h>
#include <stdlib.h>
#include <jni.h>
#include <android/log.h>

//implementions
char* base64_encode(const char*);   
char* base64_decode(const char*);  
static char find_pos(char);

//api
char* base64(char* (*)(const char*),const char*);

#define B64_ENCODE base64_encode

#define B64_DECODE base64_decode

#define B64(FLAG,TEXT)	base64(FLAG,TEXT)

const char base[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
//#define NULL 0
